import 'package:flutter/material.dart';
import 'package:get/get.dart';

import 'logic.dart';

class NetPage extends StatelessWidget {
  final logic = Get.put(NetLogic());
  final state = Get.find<NetLogic>().state;

  @override
  Widget build(BuildContext context) {
    logic.getData();
    return Scaffold(
      body: GetBuilder<NetLogic>(
        assignId: true,
        builder: (logic) {
          List<Widget> list = [];
          logic.bizType.forEach((element) {
            list.add(Text(element.value));
            list.add(Text("${element.orgId}"));
          });

          return Center(
            child: Column(
              mainAxisAlignment: MainAxisAlignment.center,
              children: list,
            ),
          );
        },
      ),
    );
  }
}

//[
//               Text(logic.welcome==null?"":logic.welcome!.welcome),
//               Text(logic.welcome==null?"":logic.welcome!.empty),
//               Text(logic.welcome==null?"":logic.welcome!.purple),
//             ]